import {CzmlDataSource} from "cesium";
import {generateMountFn} from "yt-cesium";

export function createCzmlSource(sourceName: string) {
  let source: CzmlDataSource | null = new CzmlDataSource(sourceName);
  return {
    source,
    mount: generateMountFn(sourceName, source)
  }
}